package com.aoxiang.earlywaringapi.repository;

import com.aoxiang.earlywaringapi.module.BaseHouseholdInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author teevil@126.com
 * @date 2021/6/29
 */
public interface BaseHouseholdInfoRepository extends JpaRepository<BaseHouseholdInfo,Integer> {
    /**
     * 根据CountryHouseholdNo返回列表
     *
     * @param countryHouseholdNo 户号
     * @return List<BaseHouseholdInfo>
     */
    List<BaseHouseholdInfo> findBaseHouseholdInfosByCountryHouseholdNo(String countryHouseholdNo);


    /**
     * 根据idCard返回列表
     *
     * @param idCard 户号
     * @return List<BaseHouseholdInfo>
     */
    List<BaseHouseholdInfo> findBaseHouseholdInfoByIdCard(String idCard);

}
